package edu.jmu.flowmeter.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import edu.jmu.flowmeter.dto.AbstractBaseDomain;

import javax.persistence.*;
import java.util.Date;

@Table(name = "data")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Data extends AbstractBaseDomain {

    @Column(name = "data_time")
    private Date dataTime;

    private Double flow;

    @Column(name = "liquid_level_height")
    private Double liquidLevelHeight;

    /**
     * @return data_time
     */
    public Date getDataTime() {
        return dataTime;
    }

    /**
     * @param dataTime
     */
    public void setDataTime(Date dataTime) {
        this.dataTime = dataTime;
    }

    /**
     * @return flow
     */
    public Double getFlow() {
        return flow;
    }

    /**
     * @param flow
     */
    public void setFlow(Double flow) {
        this.flow = flow;
    }

    /**
     * @return liquid_level_height
     */
    public Double getLiquidLevelHeight() {
        return liquidLevelHeight;
    }

    /**
     * @param liquidLevelHeight
     */
    public void setLiquidLevelHeight(Double liquidLevelHeight) {
        this.liquidLevelHeight = liquidLevelHeight;
    }
}